package com.bawei.fuxi.ui.home;

import com.bawei.fuxi.base.mvp.BaseView;
import com.bawei.fuxi.base.utils.ConstantUtils;
import com.bawei.fuxi.entity.BannerEntity;
import com.bawei.fuxi.entity.VideoEntity;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface HomeContract {
    interface IHomeModel{
        Observable<VideoEntity> video( int currentPage, int pageSize);
        Observable<VideoEntity> search( String keywords);
        Observable<BannerEntity> banner();
    }
    interface IHomeView extends BaseView {
        void showVideo(VideoEntity videoEntity );
        void showSearch(VideoEntity videoEntity );
        void showBanner(BannerEntity bannerEntity);
    }


    interface IHomePresenter{
        void video( int currentPage, int pageSize);
        void search( String keywords);
        void banner();
    }

}
